package cate.common.table.activity.hotselling.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;

import java.util.HashMap;
import java.util.Map;

@EExcelRowClass
public class HotSellingCombinationRow extends ERow {
    @EExcelNoteField(fieldName = "开服天数")
    public int openDay;
    @EExcelNoteField(fieldName = "活动配置ID")
    public int configId;
    @EExcelNoteField(fieldName = "额外领取")
    public String extraReward;
    @EExcelNoteField(fieldName = "免费奖励")
    public String freeReward;
    @EExcelNoteField(fieldName = "组合功能ID1")
    public int funcId1;
    @EExcelNoteField(fieldName = "支付功能ID1")
    public int tid1;
    @EExcelNoteField(fieldName = "组合功能ID2")
    public int funcId2;
    @EExcelNoteField(fieldName = "支付功能ID2")
    public int tid2;
    @EExcelNoteField(fieldName = "组合功能ID3")
    public int funcId3;
    @EExcelNoteField(fieldName = "支付功能ID3")
    public int tid3;
    @EExcelNoteField(fieldName = "邮件ID")
    public int mailId;

    public Map<Integer, Integer> idMap;

    @Override
    public void decode() {
        super.decode();
        idMap = new HashMap<>();
        idMap.put(funcId1, tid1);
        idMap.put(funcId2, tid2);
        idMap.put(funcId3, tid3);
    }
}
